#!/bin/bash

var=http://www.google.com/test.htm

echo ${var#*//}

echo ${var##*/}

echo ${var%/*}

echo ${var%%/*}

echo ${var:0:5}

echo ${var:7}

echo ${var:0-7:3}

echo ${var:0-7}

name=$(whoami)
echo $name
shortname=${name##*\\}
echo $shortname

path="/c/Users/$shortname/.m2/repository"
echo $path